<template>
  <bSearch :data="mSearch.data" :instance="mSearch">
    <el-button @click="() => mSearch.onSearch()" type="primary">搜索</el-button>
  </bSearch>
  <div class="blank"></div>
  <bTableVue :list="pList.list" :instance="pList"></bTableVue>
</template>
<script setup lang="ts">
import { Loglist, LogSearch } from "@b/index/log";
import bSearch from "@/components/public/b_search.vue";
import bTableVue from "@/components/public/b_table.vue";
import { ElButton } from "element-plus";

const pList = new Loglist();
const mSearch = new LogSearch();
mSearch.onSearch = () => {
  //解构（浅拷贝，防止存在查询条件时点击页码产生的混乱）
  pList.search_key = mSearch.getData();
  pList.refresh(1);
};
</script>
<style scoped></style>
